package com.gsmr.dao;

import java.util.List;
import java.util.Map;

import com.gsmr.entity.AlarmInfo;

/**
 * AlarmInfoDao
 * @author alarmInfo
 *
 */
public interface AlarmInfoDao {

	
	/**
	 * 根据条件查询AlarmInfo集合
	 * @param map
	 * @return
	 */
	public List<AlarmInfo> find(Map<String,Object> map);
	/**
	 * 根据前置机连接告警时间查找最近一条无频谱告警结束时间，回填前置机告警结束时间
	 * @param map
	 * @return
	 */
	public AlarmInfo findbackfill(Map<String,Object> map);
	
	/**
	 * 获取总记录数
	 * @param map
	 * @return
	 */
	public Long getTotal(Map<String,Object> map);
	
	/**
	 * 通过多个id查询AlarmInfo实体
	 * @param id
	 * @return
	 */
	public List<AlarmInfo> findByIds(Map<String,Object> map);
	
	/**
	 * 修改AlarmInfo
	 * @param alarmInfo
	 * @return
	 */
	public int update(Map<String,Object> map);
	
	public List<String> findSiteNames();

	//public List<String> findSiteNames();
	public int updateAlarmInfo(Map<String, Object> map);

	public Long getfrontprocessorID(Map<String, Object> map);

	public String getSiteName(Map<String, Object> map);

	public int insertAlarmHistoryInfo(List<AlarmInfo> list);

	public int deleteAlarmInfo(List<Integer> list);

	public List<AlarmInfo> findToAlarmHistoryInfo(Map<String,Object> map);

	public String get_frontId(Map<String, Object> map);
}